<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全局组件</title>
</head>
<body>
<div id="app">
<heima70></heima70>
<heima70></heima70>
<heima70></heima70>
<heima70></heima70>
<heima70></heima70>
</div>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    Vue.component("heima70", {
        template: `
        <div>
        <button>我是:{{name}}</button>
        </div>
        `,
        data(){
            return {name :"刘德华"}
        }
    });


    var app = new Vue({
        el: "#app"

    })
</script>
</body>
</html>